using ArithemeticSolver;
using NUnit.Framework;

namespace ArithemeticSolverTest
{
	public class Helper
	{
		internal class ResultChecker
		{
			private readonly float m_result;

			public ResultChecker(float result)
			{
				m_result = result;
			}

			public void EqualTo(float expected)
			{
				Assert.That(m_result, Is.EqualTo(expected));
			}
		}

		internal ResultChecker Evaluate(string input)
		{
			Solver solver = new Solver();
			float result = solver.Evaluate(input);
			return new ResultChecker(result);
		}
	}
}